﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Restaurant.aspx.vb" Inherits="shassan6.Restaurant" %>
<%@ Register src="Webcontrols/Banner.ascx" tagname="Banner" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" >

  <!-- http://i-aspnet.stca.herts.ac.uk/tutorial12.html - ASP Tutorial - Code Reference --> 
   <head> 
   <title>Restaurant</title> 
   <link href="Styles/Site.css" rel="stylesheet" type="text/css" media="all" />
   </head> 

   <body>
    <uc1:Banner ID="Banner1" runat="server" />
    
    <form id="form1" runat="server"><h1>
    <asp:Label ID="RestaurantType" runat="server" ></asp:Label></h1>
    <div class=dataList>
    <asp:DataList id="dataList"  runat="server" RepeatColumns="3" RepeatDirection="Horizontal" >
        
        <ItemTemplate> 
        <asp:Image ImageURL='<%#Container.DataItem("ImageURL")%>' Height="111px" style="margin-bottom: 0px" Width="172px" runat="server" />    

                <a href='view.aspx?id=<%#DataBinder.Eval(Container.DataItem,"RestaurantID") %>'><%#Container.DataItem("Title")%></a>
            
            </ItemTemplate>
    </asp:DataList>
  </div>

     
       </form>
   </body>
   </html>